﻿#pragma once

#include <QWidget>
#include "ui_Note.h"
#include "BaseDlg.h"

enum NOTE_LEVEL
{
	NOTE_LEVEL_DEBUG,
	NOTE_LEVEL_INFO,
	NOTE_LEVEL_WRAN,
	NOTE_LEVEL_ERROR,
	NOTE_LEVEL_CRITICAL,
	NOTE_LEVEL_COUNT
};

class Note : public BaseDlg
{
	Q_OBJECT

public:
	Note(const QString& msg, NOTE_LEVEL level, QWidget* parent = nullptr);
	~Note();
	static bool Debug(const QString& msg);
	static bool Info(const QString& msg);
	static bool Warn(const QString& msg);
	static bool Error(const QString& msg);
	static bool Critical(const QString& msg);
private:
	Ui::Note ui;
};
